# bytes 字节， 特殊的字符串 
# 定义：只支持字母数字符号，不支持中文
# 直接定义字符：
data_01 = "linux"
data_02 = b"linux"
print(type(data_01))
print(type(data_02))

# 类型转换：字符串转字节
data_03 = "哈喽work"
data_04 = data_03.encode("utf-8")
print(type(data_03))
print(data_04)
print(type(data_04))

# 类型： bytes转字符串
data_05 = b"\xe5\x93\x88\xe5\x96\xbdwork"
data_06 = data_05.decode("utf-8")
print(type(data_05))
print(data_06)
print(type(data_06))